@import "@/common/constants/StyleConst.scss";

.Calendars-Container :deep {
  height: 100%;

  .header {
    padding: 8px;
    padding-bottom: 0;

    .gray-input {
      min-width: 100px;
      max-width: 120px;
    }

    .gray-input:first-child {
      min-width: 160px;

      .v-input__control .v-input__slot {
        height: 32px;

        input {
          font-weight: 700;
          font-size: 14px;
        }
      }
    }


    .action {
      .icon {
        color: #808AA0;
        font-size: 16px;
        font-weight: bold;
      }
    }
  }

  .type-buttons {
    .v-btn {
      text-transform: unset;

      &.active {
        outline: 2px solid #EB9B31;
        background-color: $color-bg-white;
      }

      &:not(:last-child) {
        margin-right: 8px;
      }
    }
  }

  .calendar-wrap {
    height: calc(100% - 76px);

    .calendar {
      border-top: unset;
      border-left: unset;

      .v-calendar-weekly__head {
        .v-calendar-weekly__head-weekday {
          border-right: unset;

          &.v-outside {
            background-color: unset;
          }
        }

        div {
          &:nth-last-of-type(-n + 2) {
            color: #17A1FA;
          }
        }
      }

      .v-calendar-weekly__day {
        border-right: unset;
        border-bottom: unset;

        &.v-outside {
          background-color: unset;
        }

        .weekday-btn {
          height: 40px;
          width: 40px;
          background-color: transparent;
          color: #56565680;

          &.weekday-blue {
            color: #17A1FA;
          }
        }
      }



      .v-present {
        .v-calendar-weekly__day-label {
          height: 40px;
          line-height: 40px;

          .v-btn {
            width: 22px;
            height: 22px;
            border-radius: 4px;
            color: #fff;
            background-color: #3B4765;

          }
        }
      }

      .v-event {
        color: #565656 !important;
        border-radius: unset;
        text-align: left;
        font-size: 9px;
        line-height: 16px;
        padding-left: 4px;

        &-start {
          border-top-left-radius: 99999px;
          border-bottom-left-radius: 99999px;
        }

        &-end {
          border-top-right-radius: 99999px;
          border-bottom-right-radius: 99999px;
        }
      }
    }
  }

  &.out {
    .v-calendar-weekly__week:nth-of-type(2) {

      .v-calendar-weekly__day-label {
        padding-left: 8px;
        text-align: left !important;
      }
    }
  }
}

.event-menu :deep {
  margin-left: -208px;

  .arrow-wrap {
    height: 8px;
  }

  .event-card {
    position: relative;

    .arrow-up {
      position: absolute;
      border-width: 8px;
      border-style: solid;
      border-color: transparent;
      border-bottom-color: #616B83;
      top: 0;
      transform: translateY(-100%);
      z-index: 20;

      &.precipice {
        right: 40px;
      }
    }
  }

  .v-list-item__avatar {
    align-self: flex-start;
    overflow: unset;
    display: flex;
    flex-direction: column;
    height: unset !important;
    min-width: unset !important;
    width: unset !important;

    .user-name {
      font-size: 10px;
      color: $color-text-white;
      white-space: nowrap;
    }
  }

  .v-list-item__content {
    text-align: left;

    .v-list-item__title,
    .v-list-item__subtitle {
      margin: 4px 0;
      font-size: 12px;
      color: $color-text-white;
    }
  }
}